home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 1
/
Precision Software Applications Silver Collection Volume One (PSM) (1993).iso
/
tutor
/
advtutr.exe
/
COMM.SCR
< prev
next >
Wrap
Text File
|
1987-08-28
|
951b
|
25 lines
An example for a Commodore Screen:
1000 CU=0:PRINT chr$(19);:HL$=ROOM$:GOSUB 10000
1010 HL$="VISABLE OBJECTS: ":Z=0:GOSUB 10000
1020 FOR X=1 TO OBJECTS:IF L(X)<>L THEN 1060
1030 IF Z<>0 THEN PRINT", ";:HL$=HL$+", "
1040 IF LEN HL$+LEN(OBJECT$(X))+3>39 THEN GOSUB 10000
1050 HL$=HL$+OBJECT$(X)
1060 NEXT:IF Z=0 THEN HL$="Nothing":GOSUB 10000
1065 IF HL$<>"" THEN GOSUB 10000
1070 HL$="OBVIOUS EXITS:":GOSUB 10000:FOR X=1 TO 6:IF D(L,X)=0 THEN 1090
1080 IF D(L,1)<>0 THEN HL$=HL$+"NORTH "
1081 IF D(L,2)<>0 THEN HL$=HL$+"EAST "
1082 IF D(L,3)<>0 THEN HL$=HL$+"SOUTH "
1083 IF D(L,4)<>0 THEN HL$=HL$+"WEST "
1084 IF D(L,5)<>0 THEN HL$=HL$+"UP "
1085 IF D(L,6)<>0 THEN HL$=HL$+"DOWN"
1090 NEXT:GOSUB 10000:PRINT "-----------------------------------------":CU=CU+1
1095 CU=24-CU:FOR X=1 TO CU:PRINT CHR$(17);:NEXT
1100 INPUT"WHAT WOULD YOU LIKE TO DO";AN$
10000 IF LEN(HL$)>39 THEN CU=CU+1
10010 PRINT HL$:HL$="":CU=CU+1:RETURN